package vn.com.tma.DemoAndroid;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class DemoAndroid extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        Button btnStart = (Button)findViewById(R.id.btnStart);
        final EditText txt = (EditText)findViewById(R.id.txt);
        btnStart.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent i = new Intent(DemoAndroid.this,Act1.class);
				Bundle b = new Bundle();
				b.putString("key", txt.getText().toString());
				i.putExtras(b);
				startActivity(i);
			}
		});
        
        
    }

 
    
}